package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.pojo.Book;
import com.itheima.pojo.Result;
import org.springframework.stereotype.Service;

import java.util.List;


public interface BookService {

    Boolean save(Book book);
    public Boolean update(Book book);
    public Boolean delete(Integer id);
    public Book getById(Integer id);
    public List<Book> getAll();

    IPage<Book> getPage(int currentPage, int pageSize);


}
